-- GENERATED SPELL FOR [Longrunner Proudhoof] --


function spell0_25335(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_25335', 30266, 1)
end

function spell1_25335(pUnit, Event) --@Forceful Cleave,n/a--
pUnit:FullCastSpellOnTarget(35473,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25335', 0, 1)
end

function Sorts_25335(pUnit, Event)
local choix_sorts_25335 = math.random(0, 1)
if choix_sorts_25335 == 0 then
pUnit:RegisterEvent('spell0_25335', 1, 1)
end
if choix_sorts_25335 == 1 then
pUnit:RegisterEvent('spell1_25335', 1, 1)
end
end

function mob25335_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25335', math.random(1500, 3000), 1)
end

function mob25335_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25335_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25335_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25335, 1, 'mob25335_Action')
RegisterUnitEvent(25335, 2, 'mob25335_Leave')
RegisterUnitEvent(25335, 3, 'mob25335_Kill')
RegisterUnitEvent(25335, 4, 'mob25335_Die')
